package java0107;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Java7 {
    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader("路径");
        BufferedReader bufferedReader = new BufferedReader(fileReader);
        String s = "";
        while ((s = bufferedReader.readLine()) != null) {
            System.out.println(s);
        }
        fileReader.close();
        bufferedReader.close();

        FileReader fileReader1 = new FileReader("路径");
        BufferedReader bufferedReader1 = new BufferedReader(fileReader1);
        String s1 = "";
        while ((s1 = bufferedReader1.readLine()) != null){
            System.out.println(s1);
        }
        fileReader1.close();
        bufferedReader1.close();

        FileReader fileReader2 = new FileReader("路径");
        BufferedReader bufferedReader2 = new BufferedReader(fileReader2);
        String s2 = "";
        while ((s2 = bufferedReader2.readLine()) != null){
            System.out.println(s2);
        }
        fileReader1.close();
        bufferedReader1.close();
    }
}
